package com.example.bpmn.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.Contact;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerConfig {
    
    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
            .info(new Info()
                .title("事件驱动工作流 API")
                .version("1.0.0")
                .description("基于 Camunda 的事件驱动工作流服务")
                .contact(new Contact()
                    .name("开发团队")
                    .email("dev@example.com")));
    }
} 